package Month07.day16;

public class duoTai {
    public static void main(String[] args) {
        animal animal = new cat();
        animal.eat();
    }
}

class animal {
    public void eat() {
        System.out.println("动物吃饭");
    }
}

class cat extends animal {
    @Override
    public void eat() {
//        super.eat();
        System.out.println("猫吃鱼");
    }
}
